<%-- 
    Document   : the schedules of one project
    Created on : 2015-5
    Author     : cjh
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <link rel="stylesheet" type="text/css" href="front/css/home-page.css"/>
        <link rel="stylesheet" type="text/css" href="front/css/adminProjectManagement.css"/>
        <link rel="stylesheet" type="text/css" href="front/css/jquery.mCustomScrollbar.css"/>
        <link rel="stylesheet" type="text/css" href="front/css/articleCenter.css"/>
        <script src="front/js/jquery-1.11.2.js"></script>
        <script src="front/js/Velocity.js"></script>
        <script src="front/js/jquery.mCustomScrollbar.concat.min.js"></script>
        <script src="front/js/home-page.js"></script>
        <script src="front/js/adminProjectManagement.js"></script>
        <title>活动管理中心</title>
    </head>
    <body class="all-page adminProjectManagement">
        <jsp:include page="head.jsp"></jsp:include>

            <div class="articleDisplay">
                <div class="title"> <form class="addProject1" action="adminAddActivity" method="get"><input type="submit" value="添加"></form>项目管理中心
                    <form action="adminActivityCenter" method="get">
                        <input id="search" name="search" type="text" placeholder="查找（支持空格多关键字查找）"/>
                    </form>
                </div>
                <div class="content">
                    <table>
                        <thead>
                            <tr><th>项目名称</th><th>开始时间</th><th>结束时间</th><th>操作</th><th> </th></tr>
                        </thead>

                        <tbody>
                        <c:forEach items="${listActivity}" var="act">
                            <tr>
                                <td class="projectName">${act.name}</td>
                                <td><fmt:formatDate value="${act.s_time}" type="date" pattern="yyyy-MM"/></td>
                                <td><fmt:formatDate value="${act.e_time}" type="date" pattern="yyyy-MM"/></td>
                                <td>
                                    <form action="adminActivityChact" name="" method="POST">
                                        <input type="hidden" name="aid" value="${act.id}">
                                        <div class="adjust">
                                            <input type ="submit" class="detailInformation" value="查看/修改"/>
                                        </div>
                                    </form>
                                </td>
                                <td>
                                    <button>删除</button>
                                    <input type="hidden" value="${act.id}" name="pid"/>
                                </td>
                            </tr>
                        </c:forEach>
                    </tbody>
                </table>
            </div>
        </div>

        <div class="borrow">
            <p class="title">删除</p>
            <p class="tip">是否确认删除？<span></span></p>
            <form action="adminDelActivity" method="POST">
                <input class="getID" type="hidden" value="" name="id"/>
                <div class="adjust">
                    <input type="submit" value="确认"/>
                    <input type="button" value="取消"/>						
                </div>
            </form>
        </div>

        <div class="returnMask"></div>

        <p class="overflowTip"></p>
    </body>
</html>
